<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="<?php echo $count_data['0'];?>，<?php echo $count_data['0'];?>推荐，<?php echo $count_data['0'];?>正品" />
<meta name="description" content="苏宁易购<?php echo $count_data['0'];?>，为您提供<?php echo $count_data['0'];?>导购，<?php echo $count_data['0'];?>推荐，<?php echo $count_data['0'];?>评价，<?php echo $count_data['0'];?>图片，<?php echo $count_data['0'];?>好不好，怎么样等产品信息，了解更多<?php echo $count_data['0'];?>导购信息，就上苏宁易购，正品行货，全国联保，货到付款" />
<title><?php echo $count_data['0'];?>，<?php echo $count_data['0'];?>推荐 - 苏宁易购</title>  
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link rel="shortcut icon" href="http://localhost/project/shop/Static/Index/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/global.css" />

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/common.js"></script> 

<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/scrolltopcontrol.js"></script>
<!--[if IE 6]>
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/DD_belatedPNG.js"></script>
<script>
    DD_belatedPNG.fix(".img_logo", "img");
</script>
<![endif]-->
</head>
<body>
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--S header-->
	<div class="header">
		<div class="top_c">
			<div class="top_c_r">
				<ul class="top_list">

					    <?php if(!isset($_SESSION['uname'])){ ?>
					<li class="li_bg">
						<a href="<?php echo U('Member/login');?>" class="a_login">登录</a>
						<a href="<?php echo U('Member/register');?>" class="a_reg">注册</a>
					</li>
					<?php }else{ ?>
					<li class="li_bg">
						<a href="<?php echo U('Member/member');?>" class="a_login"><?php echo $_SESSION['uname'];?></a>
						<a href="<?php echo U('Member/out');?>" class="a_reg">退出</a>
					</li>
					<?php } ?>
					 

					<li>  
						<a href="<?php echo U('Order/index');?>" class="a_show">我的订单</a> 
						<div class="in_hide">
							<a href="javascript:void(0)" class="a_hide">待支付</a>
							<a href="javascript:void(0)" class="a_hide">待收货</a>
							<a href="javascript:void(0)" class="a_hide">待评价</a>
							<a href="javascript:void(0)" class="a_hide">修改订单</a>  
						</div>

					</li>
					<li class="li_buy"><a href="<?php echo U('Cart/index');?>">购物车</a><span>    <?php if($_SESSION['cart']['goods']){ ?><?php echo $_SESSION['cart']['total_rows'];?><?php }else{ ?>0<?php } ?></span></li>
				</ul>
			</div>
		</div> 
	</div> 
	<!-- logo、搜索框等 -->
	<div class="logo_c">
		<a href="http://localhost/project/shop" class="logo"></a>
		<!-- <a class="logo1"></a>  -->
		<div class="search_box">
				<form id="searchForm" method="get" action="" name="searchForm"> 
					<input id="search_input" class="ui_input" type="text" value="服饰5折起" name="keyword"> 
					<input id="search_button" type="submit" value="">

					<div id="KeywordNew" class="g-search-hotwords">
						<input id="searchDefaultKeyword" type="hidden" key="" value="">
							<a href="http://localhost/project/shop/index.php/Index/List/index/cid/13" target="_blank" name="">
							<font style="color:#FF6600">衬衫</font>
						</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/14" target="_blank" name="">连衣裙</a> 
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/15" target="_blank" name="">针织衫</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/16" target="_blank" name="">T恤</a>
						<a href="http://localhost/project/shop/index.php/Index/List/index/cid/17" target="_blank" name="">风衣</a>    
					</div>

				</form>
			</div>
		<div class="r_box"></div>

	</div>
	<!--S nav -->
	<div class="nav">
		<div class="nav_c">
			<dl class="c_dl">
				<dd>
					<a href="javascript:void(0)" class="a_dd_show">全部商品分类</a> 
					<div class="a_dd_box">

						<ul class="list_s">
							<li class="in_li"> 
								<div class="in_div1"><i id="i_bg0"></i><a href="javascript:void(0)">名品</a></div>
								<div class="in_div2"><a href="javascript:void(0)">今日上新</a></div> 
								
								<div class="li_in_hide">
									<p class="p_r_top"><a href="javascript:void(0)">名品特卖更多&gt</a></p>
									<div class="in_pp">
										<?php foreach ($b_data as $k=>$v){?>
											<a href="javascript:void(0)"><img src="http://localhost/project/shop/<?php echo $v['logo'];?>" alt=""></a>
										<?php }?>
									</div> 
								</div>
							</li>
						</ul>


						<?php foreach ($c_data as $k=>$v){?>
							<ul class="list_s">
								<li class="in_li"> 
									<div class="in_div1"><i id="i_bg<?php echo $v['cid'];?>"></i><a href="<?php echo U('List/index',array('cid'=>$v[cid]));?>"><?php echo $v['cname'];?></a></div>

									<?php foreach ($v['cate_s'] as $key=>$value){?>
										<div class="in_div2"><a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a></div>
									<?php }?>

									<div class="li_in_hide"> 
										<?php foreach ($v['son'] as $k_s=>$v_s){?>
											<a href="<?php echo U('List/index',array('cid'=>$v_s[cid]));?>" class="in_a_title"><?php echo $v_s['cname'];?></a>
											<div class="in_a_box">
													<?php foreach ($v_s['son'] as $key=>$value){?>
														<a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a> 
													<?php }?>
												</div> 
										<?php }?> 
									</div>
								</li>
							</ul>
						<?php }?> 


					</div> 
				</dd> 
				<dt><a href="http://localhost/project/shop" class="a_s">首页</a></dt>
				<?php foreach ($top_c_data as $key=>$value){?>
					<dt><a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>" class="a_s"><?php echo $value['cname'];?></a></dt>
				<?php }?> 
				<!-- <span class="span_new"></span> -->
				<!-- <span class="span_hot"></span> --> 
			</dl>
		</div>
	</div>   
	<!-- =========头部结束====================================== -->
<link rel="stylesheet" href="http://localhost/project/shop/Static/Index/Css/list.css" />
<script type="text/javascript" src="http://localhost/project/shop/Static/Index/Js/list.js"></script>

<div class="position"><a href="http://localhost/project/shop">首页</a>&gt
	<?php foreach ($path as $k=>$v){?>
		<a href="<?php echo U('List/index',array('cid'=>$k));?>"><?php echo $v;?></a><span>&gt</span>
	<?php }?>
</div> 
<div class="list_main"> 
	<!--左侧-->
	<div class="list_main_l">
		<!--全部搜索分类--> 
		<div class="subNavBox">
			<h1 class="s_all">全部搜索分类</h1>
			<?php foreach ($c_data as $k=>$v){?>
				<div class="subNav"><?php echo $v['cname'];?></div>
				<?php foreach ($v['son'] as $k_s=>$v_s){?>
					<ul class="navContent">
						<?php foreach ($v_s['son'] as $key=>$value){?> 
							<li><a href="<?php echo U('List/index',array('cid'=>$value[cid]));?>"><?php echo $value['cname'];?></a></li>
						<?php }?>
					</ul>
				<?php }?>
			<?php }?>
		</div>
		<!--云台热卖-->
		<div class="hot_goods">
			<div class="hot_title">云台热卖</div>
			<?php foreach ($rand_data as $k=>$v){?>
				<div class="hot_g_s">
					<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" ><img src="http://localhost/project/shop/<?php echo $v['pic'];?>" alt="<?php echo $v['gname'];?>" /></a>
					<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" class="h_goods_t"><?php echo $v['gname'];?></a>
					<p class="h_price">¥<?php echo $v['goods_price'];?></p>
				</div>
			<?php }?>
		</div>

	</div>
	<!--右侧-->
	<div class="list_main_r">
		<div class="screening">
			<dl class="title">
				<dd><span><?php echo $count_data['0'];?></span>搜索到<strong class="num"><?php echo $count_data['1'];?></strong>件相关商品</dd>
			</dl>
			<?php foreach ($g_attr as $k=>$v){?>
				<?php $temp = $param; $temp[$k] = 0;//'不限'的为0 ?>
				<dl class="sort">
					<dd><?php echo $v['taname'];?>:</dd>
					<dt>
						<a href="<?php echo U('index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>"     <?php if($param[$k] == 0){ ?>class="a_hover"<?php } ?>>不限</a>
						<?php foreach ($v['value'] as $key=>$value){?>
							<?php $temp[$k] = $value['gaid'] ?>
							<a href="<?php echo U('index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>"     <?php if($param[$k] == $value['gaid']){ ?>class="a_hover"<?php } ?>><?php echo $value['gavalue'];?></a>
						<?php }?>

					</dt>
				</dl>
			<?php }?>

		</div>

		<!-- <div class="screening2">
			<dl class="s_dl_1">
				<dt class="s_dt_1"> 
					<a href="" class="a_cur">默认</a>
					<a href="">销量</a>
					<a href="">评价</a>
					<a href="">价格</a>
				</dt>
				<dt class="dt_2"></dt>
			</dl>
			<dl class="s_dl_2">
				<dd>
					送至 <select name=""><option value="">江苏 南京</option></select>
				</dd><dt><a href="">有货商品</a></dt>
				<dt><a href="">直降</a></dt>
				<dt><a href="">返劵</a></dt>
				<dt><a href="">大聚惠</a></dt></dl>
		</div> -->
		
		<!--商品-->
		<div class="commodity">
				    <?php if($g_data !=0){ ?>
				<?php foreach ($g_data as $k=>$v){?>
					<div class="com_s">
						<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" target="_blank" class="goods_title">
						<img src="http://localhost/project/shop/<?php echo $v['pic'];?>" alt="<?php echo $v['gname'];?>" /></a>
						<a href="<?php echo U('Show/index',array('gid'=>$v['gid'],'tid'=>$v['type_tid']));?>" target="_blank" class="goods_title"><?php echo $v['gname'];?></a>
						<p class="price">¥<?php echo $v['goods_price'];?> <del>¥<?php echo $v['market_price'];?></del></p>
						<p class="goods">库存有货</p>  
					</div>
				<?php }?>

				<?php }else{ ?>

				<h1 style="color:#ff8a00;font-size:24px">:(该分类下还没有商品！</h1>
				<?php } ?>
			</div>
			
			
		



		
		<!--分页-->
		<div class="page_list"></div> 	
	</div>
	
	<!--卖家精选-->
	
	<div class="selected"></div>
	
	
	
</div>
<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--S foot -->
<div class="foot2"> 
	<div class="foot2_c">
		<dl class="dl_f2">
			<dt class="dt_f2_s"><a href="http://www.houdunwang.com/">后盾网</a></dt> 
			<dt class="dt_f2_s"><a href="http://bbs.houdunwang.com/">后盾网论坛</a></dt>
			<dt class="dt_f2_s"><a href="http://www.baidu.com">百度</a></dt>
		</dl>
		<p class="p_w">Copyright © 2015-2015<span>***.com</span><a>易购</a>All Rights Reserved.<a>京ICP备********号</a></p>
		<img src="http://localhost/project/shop/Static/Index/Images/i_bg.jpg" alt="" class="in_img">
	</div>
</div>
</body>
</html>